#!/usr/bin/env python


import os
import sys

sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
from runtest_dalton import Filter, TestRun

test = TestRun(__file__, sys.argv)

f = Filter()

f.add(from_re = 'Potential fitted multipole moments \(QFITLIB\)',
      num_lines = 8,
      ignore_sign = True,
      rel_tolerance = 1.0e-3)

test.run(['qfit.dal'], ['h2o.mol'], f={'out': f}, args='')

sys.exit(test.return_code)
